//---------------------------------------------------------------------------

#ifndef stopSFH
#define stopSFH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include "AdvToolBar.hpp"
#include "AdvToolBarStylers.hpp"
#include "AdvMetroButton.hpp"
#include "AdvGlowButton.hpp"
#include "AdvGrid.hpp"
#include "AdvObj.hpp"
#include "BaseGrid.hpp"
#include <Vcl.Grids.hpp>
#include <Data.DB.hpp>
#include <Data.Win.ADODB.hpp>
#include "AdvGroupBox.hpp"
#include "AdvLabelEdit.hpp"
#include "AdvEdit.hpp"
//---------------------------------------------------------------------------
class Tstop : public TAdvToolBarForm
{
__published:	// IDE-managed Components
	TAdvToolBarPager *tb1;
	TAdvToolBarOfficeStyler *advtlbrfcstylr1;
	TAdvGlowButton *btnAdd;
	TAdvGlowButton *btnEdit;
	TAdvGlowButton *btnDel;
	TAdvStringGrid *sgStop;
	TAdvGlowButton *btnClose;
	TADOQuery *qStop;
	TDataSource *dsStop;
	TAdvGroupBox *grpParams;
	TAdvEdit *eName;
	TAdvEdit *eLat;
	TAdvEdit *eLng;
	TLabel *lbl1;
	TAdvGlowButton *btnSave;
	TAdvGlowButton *btnCancel;
	TAdvEdit *edtFound;
	TAdvGlowButton *btnSearch;
	void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
	void __fastcall FormShow(TObject *Sender);
	void __fastcall btnAddClick(TObject *Sender);
	void __fastcall btnCloseClick(TObject *Sender);
	void __fastcall btnCancelClick(TObject *Sender);
	void __fastcall btnSaveClick(TObject *Sender);
	void __fastcall sgStopClickCell(TObject *Sender, int ARow, int ACol);
	void __fastcall btnEditClick(TObject *Sender);
	void __fastcall btnDelClick(TObject *Sender);
	void __fastcall btnSearchClick(TObject *Sender);
	void __fastcall edtFoundKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);

private:	// User declarations
public:		// User declarations
	__fastcall Tstop(TComponent* Owner);
	void __fastcall LoadStop();
	bool bNewStop;
};

//---------------------------------------------------------------------------
extern PACKAGE Tstop *stop;
//---------------------------------------------------------------------------
#endif
